<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/ATGeometrySet/ATGraphFacet.h 文件参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_3ae1ea863de6943fe2c5c18439480f66.html">ATGeometrySet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle"><div class="title">ATGraphFacet.h 文件参考</div></div>
</div><!--header-->
<div class="contents">

<p><a href="../../db/d13/_a_t_graph_facet_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a4ed26bc457e50272cb38427aae04bbd2"><td class="memItemLeft" align="right" valign="top">BEGIN_ATEC_NAMESPACE ATGEOSET_EXPORT ATGFacets *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d13/_a_t_graph_facet_8h.html#a4ed26bc457e50272cb38427aae04bbd2">atATGFacets_grab</a> (void)</td></tr>
<tr class="memdesc:a4ed26bc457e50272cb38427aae04bbd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">从缓存中分配一个Facets数组(用atATGraphFacets_drop释放数组)  <a href="../../db/d13/_a_t_graph_facet_8h.html#a4ed26bc457e50272cb38427aae04bbd2">更多...</a><br /></td></tr>
<tr class="separator:a4ed26bc457e50272cb38427aae04bbd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f9db434899e93a74e842d116081145e"><td class="memItemLeft" align="right" valign="top">ATGEOSET_EXPORT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d13/_a_t_graph_facet_8h.html#a1f9db434899e93a74e842d116081145e">atATGFacets_setNormalMode</a> (ATGFacets *pFacetHead, ATGFacets_NormalMode normalMode, int numVertex, int numNormal)</td></tr>
<tr class="memdesc:a1f9db434899e93a74e842d116081145e"><td class="mdescLeft">&#160;</td><td class="mdescRight">声明Facets将要储存的几何数据类型的法向量模式  <a href="../../db/d13/_a_t_graph_facet_8h.html#a1f9db434899e93a74e842d116081145e">更多...</a><br /></td></tr>
<tr class="separator:a1f9db434899e93a74e842d116081145e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73588966061b5f917124841f79bbb014"><td class="memItemLeft" align="right" valign="top">ATGEOSET_EXPORT ATGraphP&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d13/_a_t_graph_facet_8h.html#a73588966061b5f917124841f79bbb014">atATGFacets_getGraph</a> (ATGFacetsP pFacetHead)</td></tr>
<tr class="memdesc:a73588966061b5f917124841f79bbb014"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回Facets数组的基础拓扑结构 @detail  <a href="../../db/d13/_a_t_graph_facet_8h.html#a73588966061b5f917124841f79bbb014">更多...</a><br /></td></tr>
<tr class="separator:a73588966061b5f917124841f79bbb014"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab080b89381502828aeafc984d3b5cefd"><td class="memItemLeft" align="right" valign="top">ATGEOSET_EXPORT bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d13/_a_t_graph_facet_8h.html#ab080b89381502828aeafc984d3b5cefd">atATGFacets_getTriangleNormal</a> (const ATGFacets *pFacets, <a class="el" href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a> *pNormal, ATGNodeId nodeId)</td></tr>
<tr class="memdesc:ab080b89381502828aeafc984d3b5cefd"><td class="mdescLeft">&#160;</td><td class="mdescRight">获得三角面的法向量  <a href="../../db/d13/_a_t_graph_facet_8h.html#ab080b89381502828aeafc984d3b5cefd">更多...</a><br /></td></tr>
<tr class="separator:ab080b89381502828aeafc984d3b5cefd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2802c3e69f0898b5334d3b6621db5eef"><td class="memItemLeft" align="right" valign="top">ATGEOSET_EXPORT bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d13/_a_t_graph_facet_8h.html#a2802c3e69f0898b5334d3b6621db5eef">atATGFacets_getNodeCoordinates</a> (ATGFacetsCP pHead, <a class="el" href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a> *pPoint, ATGNodeId nodeId)</td></tr>
<tr class="memdesc:a2802c3e69f0898b5334d3b6621db5eef"><td class="mdescLeft">&#160;</td><td class="mdescRight">获得Facets中指定节点的坐标  <a href="../../db/d13/_a_t_graph_facet_8h.html#a2802c3e69f0898b5334d3b6621db5eef">更多...</a><br /></td></tr>
<tr class="separator:a2802c3e69f0898b5334d3b6621db5eef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24eec5c602e1eb0f15428fca54f4350a"><td class="memItemLeft" align="right" valign="top">ATGEOSET_EXPORT bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d13/_a_t_graph_facet_8h.html#a24eec5c602e1eb0f15428fca54f4350a">atATGFacets_getRange</a> (const ATGFacets *pFacetHead, <a class="el" href="../../d7/d7f/struct_x_range3d.html">XRange3d</a> *pRange)</td></tr>
<tr class="memdesc:a24eec5c602e1eb0f15428fca54f4350a"><td class="mdescLeft">&#160;</td><td class="mdescRight">获得Facets的范围盒  <a href="../../db/d13/_a_t_graph_facet_8h.html#a24eec5c602e1eb0f15428fca54f4350a">更多...</a><br /></td></tr>
<tr class="separator:a24eec5c602e1eb0f15428fca54f4350a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><dl class="section author"><dt>作者</dt><dd>SZEWC </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2022/04/28 </dd></dl>
</div><h2 class="groupheader">函数说明</h2>
<a id="a73588966061b5f917124841f79bbb014" name="a73588966061b5f917124841f79bbb014"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a73588966061b5f917124841f79bbb014">&#9670;&nbsp;</a></span>atATGFacets_getGraph()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ATGEOSET_EXPORT ATGraphP atATGFacets_getGraph </td>
          <td>(</td>
          <td class="paramtype">ATGFacetsP&#160;</td>
          <td class="paramname"><em>pFacetHead</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回Facets数组的基础拓扑结构 @detail </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ATGFacetsP</td><td>pFacetHeader 目标Facets数组 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>ATGEOSET_EXPORT ATGraphP 指向Facets的拓扑连通图</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/28 </dd></dl>

</div>
</div>
<a id="a2802c3e69f0898b5334d3b6621db5eef" name="a2802c3e69f0898b5334d3b6621db5eef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2802c3e69f0898b5334d3b6621db5eef">&#9670;&nbsp;</a></span>atATGFacets_getNodeCoordinates()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ATGEOSET_EXPORT bool atATGFacets_getNodeCoordinates </td>
          <td>(</td>
          <td class="paramtype">ATGFacetsCP&#160;</td>
          <td class="paramname"><em>pHead</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a> *&#160;</td>
          <td class="paramname"><em>pPoint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATGNodeId&#160;</td>
          <td class="paramname"><em>nodeId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获得Facets中指定节点的坐标 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ATGFacetsCP</td><td>pHeader 目标Facets </td></tr>
    <tr><td class="paramname"><a class="el" href="../../d5/d5b/struct_x_point3d.html" title="3D空间点类">XPoint3d</a></td><td>* pPoint 给定节点所返回的坐标 </td></tr>
    <tr><td class="paramname">ATGNodeId</td><td>nodeId 需要获取坐标的节点Id </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>ATGEOSET_EXPORT booltrue 意味着节点Id有效且具有坐标数据</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/28 </dd></dl>

</div>
</div>
<a id="a24eec5c602e1eb0f15428fca54f4350a" name="a24eec5c602e1eb0f15428fca54f4350a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24eec5c602e1eb0f15428fca54f4350a">&#9670;&nbsp;</a></span>atATGFacets_getRange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ATGEOSET_EXPORT bool atATGFacets_getRange </td>
          <td>(</td>
          <td class="paramtype">const ATGFacets *&#160;</td>
          <td class="paramname"><em>pFacetHead</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d7/d7f/struct_x_range3d.html">XRange3d</a> *&#160;</td>
          <td class="paramname"><em>pRange</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获得Facets的范围盒 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>ATGFacets * pFacetHeader 目标Facets </td></tr>
    <tr><td class="paramname"><a class="el" href="../../d7/d7f/struct_x_range3d.html" title="三维范围盒">XRange3d</a></td><td>* pRange 计算得到的范围盒 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>ATGEOSET_EXPORT bool true 意味着顶点数组能够定义范围</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/28 </dd></dl>

</div>
</div>
<a id="ab080b89381502828aeafc984d3b5cefd" name="ab080b89381502828aeafc984d3b5cefd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab080b89381502828aeafc984d3b5cefd">&#9670;&nbsp;</a></span>atATGFacets_getTriangleNormal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ATGEOSET_EXPORT bool atATGFacets_getTriangleNormal </td>
          <td>(</td>
          <td class="paramtype">const ATGFacets *&#160;</td>
          <td class="paramname"><em>pFacets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d5/d5b/struct_x_point3d.html">XPoint3d</a> *&#160;</td>
          <td class="paramname"><em>pNormal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATGNodeId&#160;</td>
          <td class="paramname"><em>nodeId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获得三角面的法向量 </p>
<dl class="section note"><dt>注解</dt><dd>如果该面不是恰好三个节点, 返回 false 和 零向量</dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>ATGFacets * pFacets 目标三角面 </td></tr>
    <tr><td class="paramname"><a class="el" href="../../d5/d5b/struct_x_point3d.html" title="3D空间点类">XPoint3d</a></td><td>* pNormal 法向量 </td></tr>
    <tr><td class="paramname">ATGNodeId</td><td>nodeId 三角面上任一节点的 Id </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>ATGEOSET_EXPORT bool 如果该面恰好具有三个节点, 返回 true, 否则返回 false</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/28 </dd></dl>

</div>
</div>
<a id="a4ed26bc457e50272cb38427aae04bbd2" name="a4ed26bc457e50272cb38427aae04bbd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ed26bc457e50272cb38427aae04bbd2">&#9670;&nbsp;</a></span>atATGFacets_grab()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BEGIN_ATEC_NAMESPACE ATGEOSET_EXPORT ATGFacets * atATGFacets_grab </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从缓存中分配一个Facets数组(用atATGraphFacets_drop释放数组) </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">void</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>ATGEOSET_EXPORT ATGFacets *</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/28 </dd></dl>

</div>
</div>
<a id="a1f9db434899e93a74e842d116081145e" name="a1f9db434899e93a74e842d116081145e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f9db434899e93a74e842d116081145e">&#9670;&nbsp;</a></span>atATGFacets_setNormalMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ATGEOSET_EXPORT void atATGFacets_setNormalMode </td>
          <td>(</td>
          <td class="paramtype">ATGFacets *&#160;</td>
          <td class="paramname"><em>pFacetHead</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ATGFacets_NormalMode&#160;</td>
          <td class="paramname"><em>normalMode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numVertex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>numNormal</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>声明Facets将要储存的几何数据类型的法向量模式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">ATGFacets</td><td>* pFacetHeader 要设置法向量模式的Facets数组 </td></tr>
    <tr><td class="paramname">ATGFacets_NormalMode</td><td>normalMode 反映如何构造法向量 </td></tr>
    <tr><td class="paramname">int</td><td>numVertex 顶点近似个数, 可以为 0 </td></tr>
    <tr><td class="paramname">int</td><td>numNormal 法向量近似个数, 可以为 0, 只有在法向量与顶点分离时才使用 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>ATGEOSET_EXPORT void</dd></dl>
<dl class="section author"><dt>作者</dt><dd>SZEWEC </dd></dl>
<dl class="section since"><dt>自从</dt><dd>2022/04/28 </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
